package com.itheima.chouxianglei;

public class Demo01 {
    public static void main(String[] args) {
        Dog dog = new Dog();
        dog.eat();
        dog.drink();
        Cat cat = new Cat();
        cat.eat();
        cat.drink();
       /* Animal a= new Animal();
        a.eat();*/
    }
}
abstract class Animal{
    public void drink(){
        System.out.println("喝水");
    }
   public abstract void eat();
}
class  Dog extends Animal{
    //@Override
    public void eat() {
        System.out.println("狗吃肉");
    }
}
class Cat extends Animal{
   // @Override
    public void eat() {
        System.out.println("猫吃鱼");
    }
}
abstract class KunChong extends Animal{

}
class ShikeLang extends KunChong{
    @Override
    public void eat() {

    }
}